import React from "react";
import lazyLoad from "../utils/lazyLoad";
import Layout from '../../components/Layout/Layout'
import SettingsBackupRestoreIcon from '@mui/icons-material/SettingsBackupRestore';
import CropIcon from '@mui/icons-material/Crop';
import ApiIcon from '@mui/icons-material/Api';

const nextTestRouter = [
  {
    element: <Layout />,
    children: [
      {
        path: '/configuarations',
        element: lazyLoad(React.lazy(() => import("../../components/EmptyRoute/EmptyRoute"))),
        meta: {
          requiresAuth: true,
          key: "configuarations",
          title: "配置管理",
          icon: SettingsBackupRestoreIcon,
          titleI18n: 'configuarations',
          showNav: true
        },
        redirect: '/configuarations/userManagement',
        index: 5,
        children: [
          {
            path: '/configuarations/userManagement',
            element: lazyLoad(React.lazy(() => import("../../pages/Configuarations/UserManagement"))),
            meta: {
              requiresAuth: true,
              key: "userManagement",
              title: "用户管理",
              titleI18n: 'userManagement',
              showNav: true
            },
            index: 51
          }
        ]
      },
      {
        path: '/CropperPage',
        element: lazyLoad(React.lazy(() => import("../../pages/Cropper"))),
        meta: {
          requiresAuth: true,
          key: "CropperPage",
          title: "图片裁剪",
          icon: CropIcon,
          titleI18n: 'CropperPage',
          showNav: true
        },
        index: 6
      },
      {
        path: '/MapCharts',
        element: lazyLoad(React.lazy(() => import("../../pages/MapCharts"))),
        meta: {
          requiresAuth: true,
          key: "MapCharts",
          title: "echarts地图",
          icon: ApiIcon,
          titleI18n: 'mapCharts',
          showNav: true
        },
        index: 7
      },
      {
        path: '/canvas',
        element: lazyLoad(React.lazy(() => import("../../pages/Canvas"))),
        meta: {
          requiresAuth: true,
          key: "canvas",
          title: "canvas",
          icon: ApiIcon,
          titleI18n: 'canvas',
          showNav: true
        },
        index: 7
      }
    ]
  },
]

export default nextTestRouter